package com.local.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name = "local_member_finance")
public class LocalMemberFinance {
    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "uuid")
    private String uuid;

    @NotNull
    @Column(name = "money")
    private Double money;

    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "member_uuid")
    private String memberUuid;

    @Column(name = "member_name")
    private String memberName;

    @Column(name = "car_no")
    private String carNo;

    @NotNull
    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "status")
    private String status;

    @Column(name = "attr_1")
    private String attr1;

    @Column(name = "attr_2")
    private String attr2;

    @Column(name = "attr_3")
    private String attr3;
    
    
    private Integer count;
    
    

    public LocalMemberFinance(String uuid, Double money, String memberUuid,
			String memberName, String carNo, Date createTime, String status,
			String attr1, String attr2, String attr3)
	{
		super();
		this.uuid = uuid;
		this.money = money;
		this.memberUuid = memberUuid;
		this.memberName = memberName;
		this.carNo = carNo;
		this.createTime = createTime;
		this.status = status;
		this.attr1 = attr1;
		this.attr2 = attr2;
		this.attr3 = attr3;
	}
    
    

	public LocalMemberFinance()
	{
		super();
		// TODO Auto-generated constructor stub
	}



	public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid == null ? null : uuid.trim();
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public String getMemberUuid() {
        return memberUuid;
    }

    public void setMemberUuid(String memberUuid) {
        this.memberUuid = memberUuid == null ? null : memberUuid.trim();
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName == null ? null : memberName.trim();
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo == null ? null : carNo.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getAttr1() {
        return attr1;
    }

    public void setAttr1(String attr1) {
        this.attr1 = attr1 == null ? null : attr1.trim();
    }

    public String getAttr2() {
        return attr2;
    }

    public void setAttr2(String attr2) {
        this.attr2 = attr2 == null ? null : attr2.trim();
    }

    public String getAttr3() {
        return attr3;
    }

    public void setAttr3(String attr3) {
        this.attr3 = attr3 == null ? null : attr3.trim();
    }



	public Integer getCount()
	{
		return count;
	}



	public void setCount(Integer count)
	{
		this.count = count;
	}
    
    
}